# -*- coding: utf-8 -*-
import traceback, os, re, datetime, time

from    pymongo     import Connection
from    termcolor   import cprint

if __name__ == '__main__':
    conn        = Connection('27.0.12.106')
    db          = conn['tintuc_v2']
    collection  = db['article']

    result  = collection.find({'source': 'cand.com.vn'}).limit(100)
    for row in result:
        print row['update']
    print 'Finished.', datetime.datetime.now()

